import request from '@/utils/request.js'

// 省份
export const apiGetProvince = (params) =>
  request({
    url: '/bd/administrativeController/referGrid',
    method: 'get',
    params,
  })
// 城市
export const apiGetCity = (params) =>
  request({
    url: '/bd/cityController/referGrid',
    method: 'get',
    params,
  })
// 部门
export const apiGetDep = (params) =>
  request({
    url: '/bd/deptController/referGrid',
    method: 'get',
    params,
  })
export const apiGetPosition = (params) =>
  request({
    url: '/bd/positionController/referGrid',
    method: 'get',
    params,
  })
export const apiGetWorkType = (params) =>
  request({
    url: '/bd/workerTypeController/referGrid',
    method: 'get',
    params,
  })
export default {
  province: apiGetProvince,
  city: apiGetCity,
  dep: apiGetDep,
  position: apiGetPosition,
  workType: apiGetWorkType
}